package class15to16_UnionSet;

public class UnionTest {
    public static void main(String[] args) {
        String[] strs = {"a","b","c","d","e","f"};
        UnionFind<String> ufs = new UnionFind<>(strs);
        ufs.union("a","b");
        ufs.union("c","d");
        ufs.union("b","d");
        System.out.println(ufs.unionSize("b"));
        System.out.println(ufs.numOfSets());
    }
}
